package test;

import java.util.ArrayList;
import java.util.TimerTask;

import tcpClient.ClientTestInterface;
import domain.Auction;

public class ListAuctionTimerTask extends TimerTask {
	private Auction auction;
	private LoadTestComponent loadTestComponent;
	private ClientTestInterface client;

	public ListAuctionTimerTask(LoadTestComponent loadTestComponent,	ClientTestInterface client) {
		super();
		this.loadTestComponent = loadTestComponent;
		this.client = client;
	}
	@Override
	public void run() {
		client.sendCommand("!list");
		String output = client.response();
		while(!output.equals("*endlist*")){		
			output = client.response();
		}

	}

}
